////////////////////////////////////////////////////////////////////////////////
// Copyright 2006 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   MapIterator.java
// AUTHOR           :   ric.yik
// DATE CREATE      :   2006/5/10
// DESCRIPTION      :   
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2006/5/10      ric.yik         1.0                 source is created.
//
//
//
////////////////////////////////////////////////////////////////////////////////

package com.erp.app.common.util;

import java.util.Map;

import com.erp.framework.util.CommonUtil;

public class MapIterator extends CompositeIterator {

    private final Map map;

    public MapIterator(Map map) {
        super(CommonUtil.getMap(map).entrySet().iterator());
        this.map = CommonUtil.getMap(map);
    }

    public boolean resetIterator() {
        this.setComponent(map.entrySet().iterator());
        return true;
    }

    public Map getMap() {
        return this.map;
    }

}
